.TH std::basic_const_iterator::operator[] 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::basic_const_iterator::operator[] \- std::basic_const_iterator::operator[]

.SH Synopsis
   constexpr std::iter_const_reference_t<Iter> operator[](
   difference_type n ) const                                              (since C++23)
       requires std::random_access_iterator<Iterator>;

   Returns a reference to the element at specified relative location.

.SH Parameters

   n - position relative to current location

.SH Return value

   A reference-to-const to the element at relative location, that is,
   static_cast<std::iter_const_reference_t<Iter>>(base()[n]).

.SH Example

    This section is incomplete
    Reason: no example

.SH See also

   operator*  accesses the pointed-to element
   operator-> \fI(public member function)\fP

.SH Category:
     * Todo no example
